package net.infoaccelerator.peerReview.model.vo;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: andrewpowell
 * Date: Mar 3, 2008
 * Time: 9:07:33 PM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table(name = "submitter")
public class Submitter extends User {

    private Document lastDoc;
    private ArrayList<Document> submittedDocs;

    public Submitter(String firstName, String lastName, String email, String password, String created, String modified, String lastLogin, Document lastDoc, ArrayList<Document> submittedDocs) {
        super(firstName, lastName, email, password, created, modified, lastLogin);
        this.lastDoc = lastDoc;
        this.submittedDocs = submittedDocs;
    }

    public Submitter(Document lastDoc, ArrayList<Document> submittedDocs) {
        this.lastDoc = lastDoc;
        this.submittedDocs = submittedDocs;
    }

    public Submitter(String firstName, String lastName, String email, String password, String created, String modified, String lastLogin) {
        super(firstName, lastName, email, password, created, modified, lastLogin);
    }

    public Submitter() {
    }

    public Document getLastDoc() {
        return lastDoc;
    }

    public void setLastDoc(Document lastDoc) {
        this.lastDoc = lastDoc;
    }

    public ArrayList<Document> getSubmittedDocs() {
        return submittedDocs;
    }

    public void setSubmittedDocs(ArrayList<Document> submittedDocs) {
        this.submittedDocs = submittedDocs;
    }
}
